package org.hy.demo.design;

import com.alibaba.fastjson.JSON;
import org.hy.demo.design.mq.OrderMq;

public class OrderService {

    public void onMessage(String message){
        OrderMq mq = JSON.parseObject(message, OrderMq.class);

        mq.getUid();
        mq.getOrderId();
        mq.getCreateOrderTime();

        // .... 其他类型业务

    }
}
